import Util from './Util.js'

const h2 = document.querySelector('h2')
const input = document.querySelector(`[name='title']`)
Node.prototype.substr = Util.substr
console.log(h2.textContent)
console.log(input.value)

console.log(Util.prototype(h2))
console.log(Util.prototype(input))
console.log(h2.substr(0, 2))
console.log(input.substr(0, 2))
